package com.jiukuaidao.zhulin.module.order.contract;

import com.jiukuaidao.library.base.IBasePresenter;
import com.jiukuaidao.library.base.IBaseView;
import com.jiukuaidao.zhulin.entity.ApiConfirmOrderInfo;
import com.jiukuaidao.zhulin.entity.ApiHistoryAddressInfo.AddressInfo;
import com.jiukuaidao.zhulin.entity.EventShoppingCartInfo;
import com.jiukuaidao.zhulin.module.order.PostOrderInfo;

import java.util.List;

/**
 * Author : PaiTaSuo
 * Date : 2016/6/6
 * Description :
 */
public interface ConfirmOrderContract {
    interface Presenter extends IBasePresenter {
        /**
         * 提交订单 所需参数
         */
        PostOrderInfo paramsCommitOrder();

    }

    interface View extends IBaseView<Presenter> {
        String getShopId();

        String getPayWay();

        String getInvoice();

        String getRemark();

//        String getDeliveryPrice();

        AddressInfo getAddressInfo();

        void getApiInfo(ApiConfirmOrderInfo info);

        void toast(String msg);

        /**
         * 获取购物车数据字段, EventBus 用的...
         */
        List<EventShoppingCartInfo> getEventShoppingCartDatas();

        /**
         * 忽略字段
         */
        List<String> getIgnoreList();

        void getNeedConfirm(String needConfirm, String msg);

    }
}
